import { ecs } from "db://oops-framework/libs/ecs/ECS";
import { ItemModelComp } from "./model/ItemModelComp";

@ecs.register('Item')
export class Item extends ecs.Entity {
    // 数据层
    ItemModel!: ItemModelComp;
    protected init() {
        this.addComponents<ecs.Comp>(
            ItemModelComp);
    }
    destroy(): void {
        // this.remove(ItemViewComp);
        // this.remove(ItemChangViewComp);
        // this.remove(RolePagePackItemViewComp);
        // this.remove(ItemChangDianjinViewComp);

        super.destroy();
    }
}
export class EcsItemSystem extends ecs.System {
    constructor() {
        super();
       // this.add(new UsePropBllSystem());
    }
}